# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=maketh
pkgver=0.2.0
pkgrel=3
groups=('blackarch' 'blackarch-networking')
pkgdesc='A packet generator that supports forging ARP, IP, TCP, UDP, ICMP and the ethernet header as well.'
arch=('any')
url='https://packetstormsecurity.com/files/83892/Maketh-Packet-Generator-0.2.0.html'
license=('GPL3')
depends=()
source=("https://dl.packetstormsecurity.net/UNIX/scanners/$pkgname-$pkgver.tar.gz")
sha512sums=('b1f8aaf3de80fb2673bd997935e2e3353db3dbaa0b5b7c75f24a92c8f485ca09fda92209197105caf4bd0f72a84f56fa188571e220c1c297d0b91cd659126689')

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" AUTHORS BUG NEWS README \
    TODO
  install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

